//生成表格模型的工厂类方法
Ext.define('gytoa.utils.factory.GridFieldsFactory',{
	name: 'gridFieldsFactory',
	//工厂静态方法
	statics : {
		
		getFields : function(girdSchemaParent) {
			var fields = [];
			var girdScheme = girdSchemaParent.schema;
			//表头分组
			for (var i = 0; i < girdScheme.gridFieldDefines.length; i++) {
				var onefield = girdScheme.gridFieldDefines[i];
				var field = {
					name: onefield.tf_fieldName, 
					type: onefield.tf_fieldType
				};
				fields.push(field);
			};
			return fields;
		}
	
	}
})